/*
 * test_desdoc.cpp
 *
 *  Created on: Nov 29, 2013
 *      Author: killerg
 */

#include "share/http_c2.h"

bool test_desdoc() {
    http_client2 hc;

    if (!hc.init()) {
        perror("init err");
        return false;
    }

    hc.do_query("http://svn:8092/ll_gamedata/_design/dev_fri", NULL, [](int err, const std::string& data){
        printf("code:%d\n", err);
        printf("body:%s\n", data.c_str());
    });
    while (1) {
        hc.update();
    }

    hc.destroy();

    return true;
}
